import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useSidebarStore = defineStore('sidebar', () => {
  const isCollapsed = ref(true)

  const toggleSidebar = () => {
    isCollapsed.value = !isCollapsed.value
  }

  const openSidebar = () => {
    isCollapsed.value = false
  }

  return {
    isCollapsed,
    toggleSidebar,
    openSidebar
  }
}) 